(function() {
  var __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  this.ShowProfileModel = (function(_super) {

    __extends(ShowProfileModel, _super);

    function ShowProfileModel() {
      return ShowProfileModel.__super__.constructor.apply(this, arguments);
    }

    ShowProfileModel.prototype.defaults = {
      UserId: 0,
      Login: '',
      Email: '',
      Status: '',
      Avatar: '',
      SuccessMessage: '',
      CurrentUserId: 0
    };

    ShowProfileModel.prototype.url = function() {
      var url;
      url = SiteMap.Profile.Show + "/" + this.attributes.Login;
      url += "?login=" + this.attributes.Login;
      return url;
    };

    ShowProfileModel.prototype.parse = function(response) {
      var attrs;
      attrs = {
        UserId: response.UserId,
        Login: response.Login,
        Email: response.Email,
        Status: response.Status,
        CurrentUserId: response.CurrentUserId
      };
      if (response.Avatar != null) {
        attrs.Avatar = "/myLibrary/Uploads/" + response.Avatar;
      }
      return attrs;
    };

    return ShowProfileModel;

  })(Backbone.Model);

}).call(this);
